import Bar from "./bar.vue";
import Dot from "./dot.vue";
import K from "./k.vue";
import Line from "./line.vue";
import Pie from "./pie.vue";
import Radar from "./radar.vue";
import Flights from "./flights.vue";

export function install(Vue) {
    Vue.component('MyBar', Bar);
    Vue.component('MyDot', Dot);
    Vue.component('MyK', K);
    Vue.component('MyLine', Line);
    Vue.component('MyPie', Pie);
    Vue.component('MyRadar', Radar);
    Vue.component('MyFlights', Flights);
    console.info('myCharts is installed');
}

if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue);
}

export default{
    install
}

